package jp.seraph.jsade.perceptor;

import jp.seraph.jsade.math.Angle;

/**
 *
 */
public class HingeJointPerceptor implements Perceptor {
    public HingeJointPerceptor(String aJointName, double aValue){
        mJointName = aJointName;
        mValue = Angle.createAngleAsDegree(aValue);
    }

    private String mJointName;
    private Angle mValue;

    /**
     *
     * @see jp.seraph.jsade.perceptor.Perceptor#accept(jp.seraph.jsade.perceptor.PerceptorVisitor)
     */
    public void accept(PerceptorVisitor aVisitor) {
        aVisitor.visit(this);
    }

    public String getName(){
        return mJointName;
    }

    public Angle getValue(){
        return mValue;
    }
}
